//
//  ZMAlertView.h
//  ZMKitDemo
//
//  Created by zm on 2018/6/13.
//  Copyright © 2018年 zm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZMAlertView : NSObject

+ (void)alert:(nullable NSString *)title
      message:(NSString *)message
 dismissTitle:(NSString *)dismissTitle
viewController:(UIViewController *)viewController
dismissAction:(void (^ _Nullable)(id _Nullable ret))dismissAction;

+ (void)confirmOrCancel:(nullable NSString *)title
                message:(NSString *)message
           confirmTitle:(NSString *)confirmTitle
            cancelTitle:(NSString *)cancelTitle
         viewController:(UIViewController *)viewController
          confirmAction:(void (^ _Nullable)(id _Nullable ret))confirmAction
          dismissAction:(void (^ _Nullable)(id _Nullable ret))dismissAction;

+ (void)confirmOrCancelWithTextField:(nullable NSString *)title
                             message:(NSString *)message
                        confirmTitle:(NSString *)confirmTitle
                         cancelTitle:(NSString *)cancelTitle
                      viewController:(UIViewController *)viewController
                       confirmAction:(void (^ _Nullable)(NSString * _Nullable text))confirmAction                    dismissAction:(void (^ _Nullable)(id _Nullable ret))dismissAction
                configurationHandler:(void (^ _Nullable)(UITextField *textField))configurationHandler;
@end

NS_ASSUME_NONNULL_END
